Check the settings row opens the Siri screen - #5682
Conversation
Without that case the entry appears in settings and opens nothing.
There was a problem hiding this comment.
🟡 Changes recommended
The newly added test assertion is currently ineffective (it will always pass), so it won’t actually guard the intended regression.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a unit test to ensure the Settings “Siri” row actually navigates to a destination screen, protecting against regressions where the row remains visible but no longer opens a view.
Changes:
- Add a new test intended to verify the Siri settings row opens a destination view.
File summaries
| File | Description |
|---|---|
| Tests/App/Utilities/SiriServerExposureTests.swift | Adds a new test for the Siri settings entry destination wiring. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| /// The row has to lead somewhere: without that case the entry appears in settings and opens | ||
| /// nothing. | ||
| @MainActor @Test func theEntryOpensTheSiriScreen() { | ||
| #expect(!String(describing: SettingsItem.siri.destinationView).isEmpty) | ||
| } |
|
Found 6 unused localization strings in the codebase. Click to see detailsTo remove them, run the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5682 +/- ##
==========================================
+ Coverage 38.86% 39.00% +0.14%
==========================================
Files 1069 1073 +4
Lines 75564 75394 -170
==========================================
+ Hits 29371 29411 +40
+ Misses 46193 45983 -210 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AI Policy
Select exactly one option that describes AI usage in this contribution:
Summary
Follows #5674. The settings entry for Siri had no test covering the case that opens its screen, so removing it would leave a row that appears in settings and opens nothing.
Screenshots
Tests only.
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes
No behaviour change.